﻿using MediatR;
using Service.Auth.Model.Model.RequestDto.Role;

namespace Service.Auth.Api.Application.Command;

public record CreateRoleCommand
    (CreateRoleDto Role) : IRequest<bool>;


public record UpdateRoleCommand
    (UpdateRoleDto Role) : IRequest<bool>;

public record DeleteRoleCommand
    (DeleteRoleDto Role) : IRequest<bool>;



/// <summary>
/// 角色绑定菜单命令
/// </summary>
public record RoleBindPermissionsCommand(RoleBindPermissionsDto RoleBindPermissions) : IRequest<bool>;

